/**
 *
 */
package com.naiterui.ehp.bs.doctor.repository;

import com.naiterui.common.repository.core.BaseJpaRepository;
import com.naiterui.ehp.bp.domain.DrPatientRemarkname;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Description 患者备注信息Dao

 * @since 1.5
 */
@Repository
public interface IDrPatientRemarkRepository extends BaseJpaRepository<DrPatientRemarkname, Long> {

    DrPatientRemarkname findFirstByDoctorIdAndPatientId(Long doctorId, Long patientId);
    /**
     * 读取备注信息
     * @Description
     * @param doctorId
     * @param patientId
     * @return
     * @History 2017年6月13日 by wangchuan
     */
    List<DrPatientRemarkname> findByDoctorIdAndPatientId(Long doctorId, Long patientId);

    List<DrPatientRemarkname> findByDoctorId(Long doctorId);

    List<DrPatientRemarkname> findByDoctorIdAndPatientIdIn(Long doctorId, List<Long> patientIds);

    void deleteByDoctorIdAndPatientId(Long doctorId, Long patientId);

}
